home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / hummer.swf / scripts / DefineSprite_341 / frame_11 / DoAction.as
Encoding:
Text File  |  2007-01-08  |  4.1 KB  |  126 lines

  1. var ┬º\x01┬º = 868;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 868)
  5.    {
  6.       set("\x01",eval("\x01") + 95);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 891)
  12.       {
  13.          set("\x01",eval("\x01") - 524);
  14.          break;
  15.       }
  16.       if(eval("\x01") == 963)
  17.       {
  18.          set("\x01",eval("\x01") - 549);
  19.          if(┬º┬ºpop())
  20.          {
  21.             set("\x01",eval("\x01") + 495);
  22.          }
  23.       }
  24.       else
  25.       {
  26.          if(eval("\x01") == 414)
  27.          {
  28.             set("\x01",eval("\x01") + 495);
  29.             ┬º┬ºpush(new ┬º\┬º\┬ºpop()┬º());
  30.             break;
  31.          }
  32.          if(eval("\x01") == 909)
  33.          {
  34.             set("\x01",eval("\x01") - 303);
  35.             ┬º┬ºpush(true);
  36.          }
  37.          else if(eval("\x01") == 606)
  38.          {
  39.             set("\x01",eval("\x01") + 1);
  40.             if(┬º┬ºpop())
  41.             {
  42.                set("\x01",eval("\x01") - 237);
  43.             }
  44.          }
  45.          else
  46.          {
  47.             if(eval("\x01") == 607)
  48.             {
  49.                set("\x01",eval("\x01") - 237);
  50.                toggleHighQuality();
  51.                ┬º┬ºpush(!┬º┬ºpop());
  52.                break;
  53.             }
  54.             if(eval("\x01") == 370)
  55.             {
  56.                set("\x01",eval("\x01") - 22);
  57.                ┬º┬ºpush(true);
  58.             }
  59.             else
  60.             {
  61.                if(eval("\x01") != 348)
  62.                {
  63.                   if(eval("\x01") == 367)
  64.                   {
  65.                      set("\x01",eval("\x01") + 7);
  66.                      stop();
  67.                      var s = 0;
  68.                      for(var i in _root.gameInfo.currentGame.score)
  69.                      {
  70.                         if(_root.gameInfo.currentGame.score[i] != undefined)
  71.                         {
  72.                            s += _root.gameInfo.currentGame.score[i];
  73.                         }
  74.                      }
  75.                      _root.scr = s;
  76.                      score.score.loadMovie("http://files.gamezhero.com/online/hummerrallychampionship/score/score.swf");
  77.                      nextBtn.btn.onRollOver = function()
  78.                      {
  79.                         _root.soundArc2.playSound("mouseOver2",0);
  80.                      };
  81.                      nextBtn.btn.onPress = function()
  82.                      {
  83.                         _root.soundArc2.playSound("mouseClick",0);
  84.                         Key.removeListener(score.score.obj);
  85.                         play();
  86.                      };
  87.                      nextBtn.btn2.onRollOver = function()
  88.                      {
  89.                         _root.soundArc2.playSound("mouseOver2",0);
  90.                      };
  91.                      nextBtn.btn2.onPress = function()
  92.                      {
  93.                         _root.soundArc2.playSound("mouseClick",0);
  94.                         getUrl("http://www.gamezhero.com/?utm_campaign=hrc&utm_source=hrc&utm_medium=more_free_games3", "_blank");
  95.                      };
  96.                      if(_root.gameInfo.currentGame.type == 0)
  97.                      {
  98.                         scoreText.text = _root.gameInfo.currentGame.score[_root.gameInfo.currentGame.level];
  99.                         var s = 0;
  100.                         for(var i in _root.gameInfo.currentGame.score)
  101.                         {
  102.                            if(_root.gameInfo.currentGame.score[i] != undefined)
  103.                            {
  104.                               s += _root.gameInfo.currentGame.score[i];
  105.                            }
  106.                         }
  107.                         scoreText2.text = "total: " + s;
  108.                      }
  109.                      if(_root.gameInfo.currentGame.type == 1)
  110.                      {
  111.                         scoreText.text = _root.gameInfo.currentGame.score[_root.gameInfo.currentGame.level];
  112.                      }
  113.                   }
  114.                   break;
  115.                }
  116.                set("\x01",eval("\x01") + 543);
  117.                if(┬º┬ºpop())
  118.                {
  119.                   set("\x01",eval("\x01") - 524);
  120.                }
  121.             }
  122.          }
  123.       }
  124.    }
  125. }
  126.